<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of VerCertificado
 *
 * @author boscaru
 * @export Modules
 * export-metadata RequiredRoles:ROLE_STUDENT
 */
class VerCertificado extends Module {

    public function index() {
        
        $Practicante=$this->model->practitioners->GetByEstudiante($this->currentUser->getName());
        
        if($Practicante->getIdSolicitud() != 0){
            
            $this->assign("regreso", $this->route->action("index"));
            $this->display("index");
            
        }else{
            
            $this->addMessage(new Message("A&uacute;n no tiene solicitud de practicas registrada", "", Message::ERROR));
            $this->display("sinSolicitud");
            
        }
        
    }
    
}

?>

